package entity

type ReplyItem struct {
	Id       string `json:"item_id" gorm:"id;primaryKey;autoIncrement"`
	Content  string `json:"item_content"`
	GroupId  string `json:"group_id"`
	ItemName string `json:"item_name"`
	UserId   string `json:"user_id"`
}
type ReplyGroup struct {
	Id        string       `json:"group_id" gorm:"id;primaryKey;autoIncrement"`
	GroupName string       `json:"group_name"`
	UserId    string       `json:"user_id"`
	Items     []*ReplyItem `json:"items" gorm:"-"`
}

func (ReplyGroup) TableName() string {
	return "reply_group"
}

func (ReplyItem) TableName() string {
	return "reply_item"
}
